package com.xxcloud.model.exception;

import java.io.Serializable;

public class BaseException extends Exception implements Serializable {

    private static final long serialVersionUID = -459837974436596847L;

    public static final String SYSTEM_ERROR = "00001";

    public static final String ILLEGAL_OPERATION = "00002";

    public BaseException(String errorCode, Throwable cause) {
        super(errorCode, cause);
    }

    public BaseException(String errorCode) {
        super(errorCode);
    }

    public BaseException() {
        super();
    }

    public String getErrorCode() {
        return super.getMessage();
    }

    public String getSelfMessage() {
        return null;
    }
}
